package com.kingre.et.service;

import java.io.IOException;
import java.util.List;
import java.util.Map;

import javax.mail.MessagingException;

import com.kingre.et.model.School;
import com.kingre.et.model.User;

public interface IUserService {

    public List<School> findSchoolAll();

    public School getSchool(Integer id);

    public User register(User user);

    public boolean isQuestionFinish(Integer userId);

    public void sendMail(String email, String subject, String message) throws IOException, MessagingException;

    public String activeRegister(Integer userId, String email);

    public List<User> findUserBySchoolAndName(Integer schoolId, String name);

    public List<User> findAccounts();

    public void delete(Integer id);

    public void add(User user, Integer schoolId);

    public void updatePasswrod(User currentUser, String password);

    // public void insertData();

    public boolean usernameExist(String username);

    public boolean studentIdExist(String studentId, School school);

    public School findSchool(Integer userId);

    public List<School> findSubSchool(Integer schoolId);

    public List<Map<String, String>> findRawdataAll();

    public User getUserByEmail(String email);

    public void updatePwd(Integer id, String pwd);

    public boolean emailExist(String email);

}
